package com.provider1.impl.controller;




import com.feign1.api.dto.Dto1;
import com.feign1.api.param.Param1;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/api")
public class TestController {


    @RequestMapping("/callback")
    @ResponseBody
    public Dto1 callback(@RequestBody Param1 data) {
        System.out.println(data);
        Dto1 dto1=new Dto1();
        dto1.setName("123");
        return dto1;
    }
}
